//
//  HRTakeAddressTableViewCell.m
//  haierapp
//
//  Created by Xia Zhiyong on 14-8-12.
//  Copyright (c) 2014年 haier. All rights reserved.
//

#import "HRTakeAddressTableViewCell.h"
#import "HRAddressInfo.h"

@implementation HRTakeAddressTableViewCell

- (void)awakeFromNib
{
    // Initialization code
}

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = (HRTakeAddressTableViewCell *)[[[NSBundle mainBundle] loadNibNamed:@"HRTakeAddressTableViewCell"
                                                                      owner:self
                                                                    options:nil] objectAtIndex:0];
//    [self setClipsToBounds:YES];
    return self;

}

-(void)configWithData:(id)data{
    HRAddressInfo *info = (HRAddressInfo*)data;
    _lblArea.text = [NSString stringWithFormat:@"%@%@%@",info.provinceName,info.cityName,info.sectionName];
    _lblDetailAdd.text = [NSString stringWithFormat:@"%@",info.addressDetail];
    _lblUserAndPhone.text = [NSString stringWithFormat:@"%@ %@",info.consignee,info.phone];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
